<?php

namespace App\Services\FaceRecognition;

use App\Services\FaceRecognition\Drivers\JunziqianFaceRecognitionVerifier;
use App\Services\FaceRecognition\Drivers\LogFaceRecognitionVerifier;
use Illuminate\Support\Manager;

class FaceRecognitionVerifierManager extends Manager
{
    public function getDefaultDriver()
    {
        return $this->config->get('face-recognition.default', 'log');
    }

    protected function createLogDriver(): FaceRecognitionVerifier
    {
        return new LogFaceRecognitionVerifier();
    }

    protected function createJunziqianDriver(): FaceRecognitionVerifier
    {
        $config = $this->config->get('face-recognition.drivers.junziqian', []);

        return new JunziqianFaceRecognitionVerifier($config);
    }
}
